Skip to content

Conversation

tdrz
Copy link
Collaborator

@tdrz tdrz commented May 8, 2025

Remove unnecessary memory copy when not REPL.

@tdrz tdrz requested review from pmp-p and samwillis May 12, 2025 07:12
@pmp-p
Copy link
Collaborator

pmp-p commented May 12, 2025

i think a memcpy is missing somewhere.

but it could be way more performant to directly move pointer of inBuf to addr 1 and block the automatic pg free()

the reason a loop was used is that it does not pull in browser wasm extension, memcpy is hard to link beetween main and side module that don't use same flags.

@pmp-p pmp-p merged commit c45636b into REL_17_4_WASM-pglite May 12, 2025
@pmp-p pmp-p deleted the tdrz/speedImprovements branch May 12, 2025 09:41
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.

2 participants