Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Average of 30 seconds to compile for each code change #1083

Closed
gustavorps opened this issue Dec 22, 2020 · 4 comments
Closed

Average of 30 seconds to compile for each code change #1083

gustavorps opened this issue Dec 22, 2020 · 4 comments

Comments

@gustavorps
Copy link

Is this only on my machine or is this normal boilerplate for each change waiting 30 seconds?

✔ Webpack
  Compiled successfully in 30.17s

 DONE  Compiled successfully in 30195ms 
System:    Host: ##### Kernel: 5.4.0-3-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0 
           Desktop: Xfce 4.14.1 Distro: MX-19.1_ahs_x64 patito feo February 15  2019 
           base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Portable System: Dell product: Inspiron 5537 v: A07 serial: <filter> 
CPU:       Topology: Dual Core model: Intel Core i7-4500U bits: 64 type: MT MCP arch: Haswell 
           rev: 1 L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19155 
           Speed: 798 MHz min/max: 800/3000 MHz Core speeds (MHz): 1: 798 2: 798 3: 798 4: 798 
Graphics:  Device-1: Intel Haswell-ULT Integrated Graphics vendor: Dell driver: i915 v: kernel 
           bus ID: 00:02.0 
           Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430] vendor: Dell 
           driver: radeon v: kernel bus ID: 03:00.0 
           Display: x11 server: X.Org 1.20.4 driver: ati,modesetting,radeon unloaded: fbdev,vesa 
           resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel Haswell Mobile v: 4.5 Mesa 19.2.1 direct render: Yes 
Audio:     Device-1: Intel Haswell-ULT HD Audio vendor: Dell driver: snd_hda_intel v: kernel 
           bus ID: 00:03.0 
Drives:    Local Storage: total: 232.89 GiB used: 90.96 GiB (39.1%) 
           ID-1: /dev/sda vendor: Samsung model: SSD 750 EVO 250GB size: 232.89 GiB 
Info:      Processes: 262 Uptime: 53m Memory: 7.67 GiB used: 5.74 GiB (74.8%) Init: systemd 
           runlevel: 5 Compilers: gcc: 8.3.0 Shell: bash v: 5.0.3 inxi: 3.0.36
@superlbr
Copy link
Collaborator

while Starting the development server take about 30s is common, change code just 5s. Build also take 30s.hope sth. like snowpack\vite conquer react one day.

@cglang
Copy link

cglang commented Dec 23, 2020

有没有解决方法,我也是类似的情况不过情况比你好点,我的在15秒左右。

@superlbr
Copy link
Collaborator

@cglang webpack做不到,所以有vite/snowpack

@superlbr
Copy link
Collaborator

glad to see sorrycc/blog#97.
with upgrade of [email protected], webpack5 is supported.
add webpack5: { lazyCompilation: {} } in .umirc, first dev load time is decrease to 10s.
while in production, azyCompilation: {} could be removed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants