Skip to content

Conversation

millsp
Copy link
Contributor

@millsp millsp commented Feb 13, 2024

No description provided.

Copy link
Contributor

size-limit report 📦

Path Size
packages/client/runtime/library.js 182.66 KB (0%)
packages/client/runtime/library.d.ts 81 B (0%)
packages/client/runtime/binary.js 606.6 KB (0%)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 163.64 KB (0%)
packages/client/runtime/edge-esm.js 163.54 KB (0%)
packages/client/runtime/wasm.js 155.46 KB (0%)
packages/client/runtime/index-browser.js 33.5 KB (0%)
packages/client/runtime/index-browser.d.ts 89 B (0%)
packages/cli/build/index.js 2.69 MB (0%)
packages/client/prisma-client-0.0.0.tgz 2.93 MB (0%)
packages/cli/prisma-0.0.0.tgz 3.88 MB (0%)
packages/bundle-size/da-workers-libsql/output.tgz 902.05 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 949.92 KB (-0.01% 🔽)
packages/bundle-size/da-workers-pg/output.tgz 971.76 KB (-0.01% 🔽)
packages/bundle-size/da-workers-planetscale/output.tgz 891.22 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 871.98 KB (0%)

Copy link

codspeed-hq bot commented Feb 13, 2024

CodSpeed Performance Report

Merging #23114 will improve performances by 20.19%

Comparing fix/adapters/use-uint8-array (971b568) with main (49a52ed)

Summary

⚡ 1 improvements
✅ 2 untouched benchmarks

Benchmarks breakdown

Benchmark main fix/adapters/use-uint8-array Change
client generation ~50 Models 5.7 s 4.8 s +20.19%

@millsp millsp self-assigned this Feb 13, 2024
@millsp millsp added this to the 5.10.0 milestone Feb 13, 2024
@millsp millsp marked this pull request as ready for review February 13, 2024 21:28
@millsp millsp requested a review from a team as a code owner February 13, 2024 21:28
@millsp millsp requested review from Jolg42, SevInf and aqrln and removed request for a team February 13, 2024 21:28
Copy link
Contributor

@SevInf SevInf left a comment

Choose a reason for hiding this comment

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

Unfortinately, this code was added recently by me in #23047 to work around pg bug (brianc/node-postgres#2930). It got fixed, but not released yet. Without that coercion, lists of bytes will not be encoded correctly when passed to the DB (we probably need test for that on the client side).

When the fix is available in pg, we won't need fixArrayBufferValues function at all.

Note: pg will convert all typed arrays to Buffers anyway, so for them we might actually suggest to go node_compat mode even after the fix is released.

@millsp
Copy link
Contributor Author

millsp commented Feb 14, 2024

Thanks for the context!

@aqrln aqrln modified the milestones: 5.10.0, 5.11.0 Feb 20, 2024
@apolanc apolanc closed this Mar 7, 2024
@Jolg42 Jolg42 deleted the fix/adapters/use-uint8-array branch March 7, 2024 15:04
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.

4 participants