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

remove circular ref and golf implementation #2517

Merged
merged 10 commits into from
Nov 11, 2020
Merged

Conversation

JoviDeCroock
Copy link
Member

Fixes #2515

@github-actions
Copy link

github-actions bot commented May 2, 2020

Size Change: +29 B (0%)

Total Size: 41.7 kB

Filename Size Change
dist/preact.js 4.02 kB +5 B (0%)
dist/preact.min.js 4.05 kB +3 B (0%)
dist/preact.module.js 4.05 kB +8 B (0%)
dist/preact.umd.js 4.09 kB +8 B (0%)
jsx-runtime/dist/jsxRuntime.js 298 B +2 B (0%)
jsx-runtime/dist/jsxRuntime.module.js 306 B +1 B
jsx-runtime/dist/jsxRuntime.umd.js 375 B +2 B (0%)
ℹ️ View Unchanged
Filename Size Change
compat/dist/compat.js 3.18 kB 0 B
compat/dist/compat.module.js 3.19 kB 0 B
compat/dist/compat.umd.js 3.23 kB 0 B
debug/dist/debug.js 3.12 kB 0 B
debug/dist/debug.module.js 3.11 kB 0 B
debug/dist/debug.umd.js 3.21 kB 0 B
devtools/dist/devtools.js 184 B 0 B
devtools/dist/devtools.module.js 195 B 0 B
devtools/dist/devtools.umd.js 260 B 0 B
hooks/dist/hooks.js 1.13 kB 0 B
hooks/dist/hooks.module.js 1.15 kB 0 B
hooks/dist/hooks.umd.js 1.2 kB 0 B
test-utils/dist/testUtils.js 437 B 0 B
test-utils/dist/testUtils.module.js 439 B 0 B
test-utils/dist/testUtils.umd.js 515 B 0 B

compressed-size-action

@JoviDeCroock JoviDeCroock requested a review from andrewiggins May 7, 2020 14:14
Copy link
Member

@andrewiggins andrewiggins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link

github-actions bot commented Oct 16, 2020

📊 Tachometer Benchmark Results

Summary

duration

  • 02_replace1k: unsure 🔍 -1% - +2% (-1.63ms - +2.85ms)
    preact-local vs preact-master
  • 03_update10th1k_x16: unsure 🔍 -5% - +4% (-1.66ms - +1.45ms)
    preact-local vs preact-master
  • many_updates: unsure 🔍 -12% - +2% (-6.15ms - +1.17ms)
    preact-local vs preact-master
  • text_update: unsure 🔍 -2% - +7% (-0.05ms - +0.21ms)
    preact-local vs preact-master

window.usedJSHeapSize

  • 02_replace1k: slower ❌ 0% - 0% (0.00ms - 0.01ms)
    preact-local vs preact-master
  • 03_update10th1k_x16: unsure 🔍 -0% - +0% (-0.01ms - +0.01ms)
    preact-local vs preact-master
  • many_updates: slower ❌ 0% - 0% (0.00ms - 0.00ms)
    preact-local vs preact-master
  • text_update: slower ❌ 0% - 0% (0.00ms - 0.00ms)
    preact-local vs preact-master

Results

02_replace1k
  • Browser: chrome-headless 86.0.4240.183
  • Sample size: 50
  • Built by: CI #464
  • Commit: b785f5f

duration

VersionAvg timevs preact-mastervs preact-local
preact-master126.67ms - 129.91ms-unsure 🔍
-2% - +1%
-2.85ms - +1.63ms
preact-local127.35ms - 130.45msunsure 🔍
-1% - +2%
-1.63ms - +2.85ms
-

window.usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master3.56ms - 3.57ms-faster ✔
0% - 0%
0.00ms - 0.01ms
preact-local3.57ms - 3.58msslower ❌
0% - 0%
0.00ms - 0.01ms
-
03_update10th1k_x16
  • Browser: chrome-headless 86.0.4240.183
  • Sample size: 60
  • Built by: CI #464
  • Commit: b785f5f

duration

VersionAvg timevs preact-mastervs preact-local
preact-master33.61ms - 35.72ms-unsure 🔍
-4% - +5%
-1.45ms - +1.66ms
preact-local33.42ms - 35.70msunsure 🔍
-5% - +4%
-1.66ms - +1.45ms
-

window.usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master3.50ms - 3.51ms-unsure 🔍
-0% - +0%
-0.01ms - +0.01ms
preact-local3.50ms - 3.51msunsure 🔍
-0% - +0%
-0.01ms - +0.01ms
-
many_updates
  • Browser: chrome-headless 86.0.4240.183
  • Sample size: 70
  • Built by: CI #464
  • Commit: b785f5f

duration

VersionAvg timevs preact-mastervs preact-local
preact-master49.56ms - 54.64ms-unsure 🔍
-3% - +13%
-1.17ms - +6.15ms
preact-local46.97ms - 52.25msunsure 🔍
-12% - +2%
-6.15ms - +1.17ms
-

window.usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master4.85ms - 4.85ms-faster ✔
0% - 0%
0.00ms - 0.00ms
preact-local4.85ms - 4.85msslower ❌
0% - 0%
0.00ms - 0.00ms
-
text_update
  • Browser: chrome-headless 86.0.4240.183
  • Sample size: 250
  • Built by: CI #464
  • Commit: b785f5f

duration

VersionAvg timevs preact-mastervs preact-local
preact-master3.06ms - 3.24ms-unsure 🔍
-7% - +1%
-0.21ms - +0.05ms
preact-local3.13ms - 3.33msunsure 🔍
-2% - +7%
-0.05ms - +0.21ms
-

window.usedJSHeapSize

VersionAvg timevs preact-mastervs preact-local
preact-master0.82ms - 0.82ms-faster ✔
0% - 0%
0.00ms - 0.00ms
preact-local0.82ms - 0.82msslower ❌
0% - 0%
0.00ms - 0.00ms
-

tachometer-reporter-action v2 for CI

@coveralls
Copy link

coveralls commented Oct 16, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling 6b3da65 on golf-circular-ref into e247e47 on master.

@developit
Copy link
Member

Can we try using an integer counter here instead of the objects? That would get rid of the 7% memory usage increase.

@JoviDeCroock
Copy link
Member Author

moving it to options seems to have hurt perf quite a bit 😅

@marvinhagemeister marvinhagemeister merged commit 27c5c19 into master Nov 11, 2020
@marvinhagemeister marvinhagemeister deleted the golf-circular-ref branch November 11, 2020 12:32
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

Successfully merging this pull request may close these issues.

Circular references resulting from h
5 participants