question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[webpack.cache.PackFileCacheStrategy] Serializing big strings (110kiB) impacts deserialization performance

See original GitHub issue

Describe the bug

Strangely enough, adding more sprinkles (see this commit) causing the following warning to appear in Node’s console:

<w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (110kiB) impacts deserialization 
performance (consider using Buffer instead and decode when needed)

Link to reproduction

  1. git clone https://github.com/moroshko/webpack-cache-issue.git
  2. cd webpack-cache-issue
  3. yarn
  4. yarn dev
  5. Observe the warning

Note: You might need to rm -rf .next to see the warning.

System Info

  System:
    OS: macOS 11.5.2
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 558.97 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.6 - ~/.nvm/versions/node/v14.17.6/bin/node
    Yarn: 1.22.11 - ~/.nvm/versions/node/v14.17.6/bin/yarn
    npm: 6.14.15 - ~/.nvm/versions/node/v14.17.6/bin/npm
  Browsers:
    Chrome: 93.0.4577.82
    Firefox: 92.0
    Safari: 14.1.2
  npmPackages:
    @vanilla-extract/babel-plugin: 1.1.0 => 1.1.0 
    @vanilla-extract/css: 1.6.0 => 1.6.0 
    @vanilla-extract/next-plugin: 1.0.0 => 1.0.0 
    @vanilla-extract/recipes: 0.1.0 => 0.1.0 
    @vanilla-extract/sprinkles: 1.3.0 => 1.3.0 

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:20
  • Comments:25 (9 by maintainers)

github_iconTop GitHub Comments

13reactions
moroshkocommented, Jan 11, 2022

@mattcompiles Looks like quite a few people are hitting this warning. Any chance to look into it any time soon?

7reactions
talentlessguycommented, Apr 23, 2022

it’s still happening on latest vanilla-extract with next.js:

<w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (102kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
<w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (102kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
<w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (102kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
wait  - compiling...
event - compiled client and server successfully in 779 ms (1280 modules)
wait  - compiling /asset/[contractAddress]/[tokenId] (client and server)...
event - compiled client and server successfully in 540 ms (1293 modules)
wait  - compiling...
event - compiled client and server successfully in 436 ms (1280 modules)

deps:

"@vanilla-extract/babel-plugin": "^1.1.5",
"@vanilla-extract/css": "^1.6.8",
"@vanilla-extract/css-utils": "^0.1.2",
"@vanilla-extract/dynamic": "^2.0.2",
"@vanilla-extract/next-plugin": "^2.0.2",
"@vanilla-extract/sprinkles": "^1.4.0",
"next": "12.1.4"

node version: 16.14.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

[webpack.cache.PackFileCacheStrategy] Serializing big ...
PackFileCacheStrategy ] Serializing big strings (110kiB) impacts ... Serializing big strings (102kiB) impacts deserialization performance (consider using ...
Read more >
Suppress "Serializing big strings impacts deserialization ...
Per the title, wondering if it is possible to suppress the "Serializing big strings impacts deserialization performance" warning messages ...
Read more >
package (#175918) · Jobs · ReactWeb5 / CivWeb · GitLab
<w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (875kiB) impacts deserialization performance (consider using Buffer instead and decode ...
Read more >
New site design is causing problems - Ciaervo
The warning I see during the build process is: Serializing big strings (319kiB) impacts deserialization performance (consider using Buffer ...
Read more >
vanilla-extract - bytemeta
[webpack.cache.PackFileCacheStrategy] Serializing big strings (110kiB) impacts deserialization performance · Previous Next. Make software development more ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found