[go: up one dir, main page]

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

perf: performance overhaul #25771

Closed
wants to merge 141 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
fccf9f7
perf: refactor array manipulation
GalacticHypernova Feb 13, 2024
5e231de
fix: add type to reduce
GalacticHypernova Feb 13, 2024
c071318
Merge branch 'nuxt:main' into patch-19
GalacticHypernova Feb 18, 2024
5cb571b
perf: refactor css
GalacticHypernova Feb 18, 2024
4cebd5c
Update css.ts
GalacticHypernova Feb 18, 2024
3b91cec
fix: types
GalacticHypernova Feb 18, 2024
23cebda
Update nitro.ts
GalacticHypernova Feb 18, 2024
bddab13
fix: use layerDir
GalacticHypernova Feb 18, 2024
9f5f7f0
types: add proper reduce type
GalacticHypernova Feb 18, 2024
eb13d68
template refactor
GalacticHypernova Feb 18, 2024
012fc4e
fix: escapes
GalacticHypernova Feb 18, 2024
ff0bca3
refactor: avoid reduce, perf: rework more parts
GalacticHypernova Feb 19, 2024
84f0120
fix: don't index
GalacticHypernova Feb 25, 2024
88eae09
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 25, 2024
fb1b57f
perf: manifect rework
GalacticHypernova Feb 25, 2024
6e0f546
Merge branch 'main' into patch-19
GalacticHypernova Feb 25, 2024
8a41232
fix: fix array
GalacticHypernova Feb 25, 2024
cc41c78
fix: iterate using explicit type
GalacticHypernova Feb 25, 2024
166ff49
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 25, 2024
0f6082a
perf: avoid duplicate filter
GalacticHypernova Feb 25, 2024
75dc266
perf: avoid unnecessary join
GalacticHypernova Feb 25, 2024
c5973a8
perf: avoid unnecessary map
GalacticHypernova Feb 26, 2024
ce1342f
Merge branch 'main' into patch-19
GalacticHypernova Feb 26, 2024
aa1b28a
Merge branch 'main' into patch-19
GalacticHypernova Feb 26, 2024
845aaab
perf: refactor nitro renderer
GalacticHypernova Feb 26, 2024
5d8ea91
fix: typo
GalacticHypernova Feb 26, 2024
efb8de6
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 26, 2024
cbe6575
fix: expect error
GalacticHypernova Feb 26, 2024
0684dae
perf: avoid more join
GalacticHypernova Feb 27, 2024
4a77a58
perf: avoid more iterations
GalacticHypernova Feb 27, 2024
558d15e
Merge branch 'nuxt:main' into patch-19
GalacticHypernova Feb 27, 2024
734f861
perf: avoid map with filter
GalacticHypernova Feb 27, 2024
934b97f
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 27, 2024
c4af433
perf: avoid Object.keys iteration with map
GalacticHypernova Feb 27, 2024
5ecb961
perf: rework more iterations
GalacticHypernova Feb 27, 2024
8200b58
perf: more iteration rework
GalacticHypernova Feb 27, 2024
1b42508
Merge branch 'nuxt:main' into patch-19
GalacticHypernova Feb 27, 2024
32af8b4
perf: more iterations reworked
GalacticHypernova Feb 27, 2024
011bb0c
fix: in
GalacticHypernova Feb 27, 2024
9da5c86
fix: provide stricter key type
GalacticHypernova Feb 27, 2024
eeb4b57
perf: avoid redundant Object.entries
GalacticHypernova Feb 27, 2024
137bb46
perf: rework error-page manipulation
GalacticHypernova Feb 27, 2024
fa4c7d9
perf: move index before loop and remove redundant variable
GalacticHypernova Feb 27, 2024
10a4b4a
perf: avoid unnecessary array -> object cast
GalacticHypernova Feb 27, 2024
ddc7899
perf: avoid Object.entries
GalacticHypernova Feb 27, 2024
b04670c
perf: avoid using includes in favor of direct checking
GalacticHypernova Feb 27, 2024
af84206
Merge branch 'main' into patch-19
GalacticHypernova Feb 27, 2024
55844d8
perf: rework includes
GalacticHypernova Feb 27, 2024
aeccde7
perf: check for length before manipulating
GalacticHypernova Feb 27, 2024
1cc80a1
perf: more iteration rework
GalacticHypernova Feb 27, 2024
6ecb6a0
test: testing timeout reason
GalacticHypernova Feb 27, 2024
391c0d1
test: revert changed to island
GalacticHypernova Feb 27, 2024
e6ab45d
chore: fully revert
GalacticHypernova Feb 27, 2024
963ef40
chore: gradual return of changes
GalacticHypernova Feb 27, 2024
a10611a
perf: only slice once
GalacticHypernova Feb 27, 2024
c0a7dc0
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 27, 2024
d632515
test: return all but default
GalacticHypernova Feb 27, 2024
3ea2ce9
Merge branch 'main' into patch-19
GalacticHypernova Feb 27, 2024
7a40bb6
chore: retry without props change
GalacticHypernova Feb 27, 2024
bc81e8e
chore: return all nuxt-island
GalacticHypernova Feb 27, 2024
aa0fc6b
chore: space
GalacticHypernova Feb 27, 2024
e4fbffe
fix: revert autofix.ci action
GalacticHypernova Feb 27, 2024
695ef92
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 27, 2024
b2d871f
fix: proper comma handling
GalacticHypernova Feb 27, 2024
ec15bc7
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 27, 2024
c16b4ce
chore: fix nuxt-island again
GalacticHypernova Feb 27, 2024
18c89ea
chore: add missing parenthesis
GalacticHypernova Feb 27, 2024
aaec9f7
fix: revert default
GalacticHypernova Feb 27, 2024
1a836a1
perf: remove redundant variables, fix: slice and don't compare
GalacticHypernova Feb 27, 2024
dd10dbc
fix: splice
GalacticHypernova Feb 27, 2024
561c39d
perf: rework head iterations
GalacticHypernova Feb 28, 2024
25ffb49
perf: early return and custom some
GalacticHypernova Feb 28, 2024
62be79d
fix: return false for exclude
GalacticHypernova Feb 28, 2024
4ce32f8
chore: revert due to none-substantial proof of improvement
GalacticHypernova Feb 28, 2024
44d3c19
chore: spacing
GalacticHypernova Feb 28, 2024
76dd78f
perf: use a constant value as opposed to repeated index
GalacticHypernova Feb 28, 2024
b4ac9be
perf: use const value in stead of indexes, rework some iterations
GalacticHypernova Feb 28, 2024
9649d93
perf: const value in stead of indexes
GalacticHypernova Feb 28, 2024
561b9f4
perf: rework includes and early return
GalacticHypernova Feb 28, 2024
5184565
fix: remove parenthesis
GalacticHypernova Feb 28, 2024
3b40f32
perf: avoid redundant iterations
GalacticHypernova Feb 28, 2024
688c627
perf: rework more iterations
GalacticHypernova Feb 28, 2024
02d7a13
[autofix.ci] apply automated fixes
autofix-ci[bot] Feb 28, 2024
eabc20a
fix: extensions
GalacticHypernova Feb 28, 2024
1f34f7a
types: provide strict typing
GalacticHypernova Feb 28, 2024
b628217
fix: use additional array
GalacticHypernova Feb 28, 2024
e26cc7d
chore: remove additional replace
GalacticHypernova Feb 28, 2024
e222f2f
fix: use array
GalacticHypernova Feb 28, 2024
30a59d9
chore: checking errors
GalacticHypernova Feb 28, 2024
aac0d55
chore: checking errors
GalacticHypernova Feb 28, 2024
4698541
chore: reverting more to test errors
GalacticHypernova Feb 28, 2024
2abbc95
chore: full revert
GalacticHypernova Feb 28, 2024
d3701c2
chore: gradual return, early return
GalacticHypernova Feb 28, 2024
05030c9
fix: revert
GalacticHypernova Feb 28, 2024
749b9ee
chore: gradual return
GalacticHypernova Feb 28, 2024
e7b42db
chore: full return
GalacticHypernova Feb 28, 2024
c00d311
perf: rework includes
GalacticHypernova Feb 28, 2024
ab205b9
perf: rework includes
GalacticHypernova Feb 28, 2024
086d5ed
perf: rework iterations, smarter array conditioning
GalacticHypernova Feb 28, 2024
d2a64ea
perf: experimental iteration refactor
GalacticHypernova Feb 28, 2024
c4aafbb
fix: parenthesis
GalacticHypernova Feb 28, 2024
84df657
chore: partial revert
GalacticHypernova Feb 28, 2024
4c6ce89
chore: gradual return
GalacticHypernova Feb 28, 2024
1560e83
fix: parentheses
GalacticHypernova Feb 28, 2024
b1f537d
chore: more gradual return, avoid map
GalacticHypernova Feb 28, 2024
c3babc9
fix: revert for later reiteration
GalacticHypernova Feb 28, 2024
700811b
chore: retry
GalacticHypernova Mar 1, 2024
2698348
chore: full retry
GalacticHypernova Mar 1, 2024
3cf2475
chore: remove `modules`
GalacticHypernova Mar 1, 2024
fa69261
perf: avoid joins
GalacticHypernova Mar 1, 2024
0d3fcfb
perf: rework more iterations
GalacticHypernova Mar 1, 2024
2efc2d9
chore: partial revert
GalacticHypernova Mar 1, 2024
f69ff94
perf: avoid more iterations
GalacticHypernova Mar 1, 2024
6e2bc23
fix: parenthesis
GalacticHypernova Mar 1, 2024
023092e
fix: proper typing
GalacticHypernova Mar 1, 2024
0c4e6db
perf: avoid multiple maps
GalacticHypernova Mar 2, 2024
192485c
fix: add tags
GalacticHypernova Mar 2, 2024
59deac5
fix: i
GalacticHypernova Mar 2, 2024
646423e
perf: avoid duplicate function calls
GalacticHypernova Mar 2, 2024
0f3d77d
Merge branch 'main' into patch-19
GalacticHypernova Mar 2, 2024
4fd0dc9
perf: rework more iterations
GalacticHypernova Mar 2, 2024
0e0eeaa
fix: provide proper return typing
GalacticHypernova Mar 2, 2024
b3ca49a
fix: provide enforced entries type
GalacticHypernova Mar 2, 2024
c82ae46
Merge branch 'main' into patch-19
GalacticHypernova Mar 2, 2024
171f2de
fix: more proper typings
GalacticHypernova Mar 2, 2024
5931b18
chore: space
GalacticHypernova Mar 2, 2024
6d6e6fa
fix: append correct char
GalacticHypernova Mar 2, 2024
250534d
perf: refactor includes
GalacticHypernova Mar 2, 2024
bff3956
perf: rework more iterations and avoid duplicate function calls
GalacticHypernova Mar 2, 2024
86fb4e4
fix: fix ci errors
GalacticHypernova Mar 2, 2024
f128e0a
fix: remove nuxt type import
GalacticHypernova Mar 2, 2024
dbf15bf
chore: testing with the spacing
GalacticHypernova Mar 2, 2024
b45fd74
chore: revert spacing
GalacticHypernova Mar 2, 2024
a328b94
perf: early return for array lookups
GalacticHypernova Mar 2, 2024
1b4588c
Merge branch 'main' into patch-19
GalacticHypernova Mar 5, 2024
fbb5ce4
[autofix.ci] apply automated fixes
autofix-ci[bot] Mar 5, 2024
9372c9c
Merge branch 'main' into patch-19
GalacticHypernova Mar 6, 2024
52639e9
[autofix.ci] apply automated fixes
autofix-ci[bot] Mar 6, 2024
436b108
chore: testing revert
GalacticHypernova Mar 6, 2024
a5a2253
Merge branch 'main' into patch-19
GalacticHypernova Mar 6, 2024
293dd2e
Merge branch 'main' into patch-19
GalacticHypernova Mar 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: fully revert
  • Loading branch information
GalacticHypernova authored Feb 27, 2024
commit e6ab45d42c36d2b3f20fe8d02316b0b6ab2d141b
3 changes: 1 addition & 2 deletions packages/nuxt/src/app/components/nuxt-island.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default defineComponent({
const currentSlots = Object.keys(slots)
let html = ssrHTML.value

if (import.meta.client && !canLoadClientComponent.value) {
if (import.meta.client && !canLoadClientComponent.value) {
for (const [key, value] of Object.entries(payloads.components || {})) {
html = html.replace(new RegExp(` data-island-uid="${uid.value}" data-island-component="${key}"[^>]*>`), (full) => {
return full + value.html
Expand Down Expand Up @@ -259,7 +259,6 @@ export default defineComponent({
}
if (import.meta.server) {
for (const [id, info] of Object.entries(payloads.components ?? {})) {
const info = payloads.components[id]
const { html } = info
teleports.push(createVNode(Teleport, { to: `uid=${uid.value};client=${id}` }, {
default: () => [createStaticVNode(html, 1)]
Expand Down
Loading