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

Sqlean PCRE2-based regexp extensions #1

Closed
wants to merge 3 commits into from
Closed

Sqlean PCRE2-based regexp extensions #1

wants to merge 3 commits into from

Conversation

saaj
Copy link
Owner

@saaj saaj commented Aug 25, 2024

Build Sqlean's regexp extension based on PCRE2.

It's +42% in build size:

- sql-wasm.wasm 742158
+ sql-wasm.wasm 1054448

And requires EMULATE_FUNCTION_POINTER_CASTS (more details on it) which is undesired for performance reasons.
Benchmark doesn't show much slowdown though:

master	firefox 115	select	0.15 s ± 1.5%
pr	firefox 115	select	0.16 s ± 1.2%
master	chromium 128	select	0.14 s ± 1.4%
pr	chromium 128	select	0.14 s ± 1.4%
master	firefox 115	import	0.93 s ± 1.8%
pr	firefox 115	import	0.91 s ± 1.5%
master	chromium 128	import	1.26 s ± 1.5%
pr	chromium 128	import	1.26 s ± 1.5%

result-analysis.pdf

@saaj saaj changed the title Sqlean regexp Sqlean PCRE2-based regexp extensions Aug 25, 2024
@saaj
Copy link
Owner Author

saaj commented Aug 25, 2024

Close in favour of lana-k#118.

@saaj saaj closed this Aug 25, 2024
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.

None yet

1 participant