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

refactor: reuse the lua vm and pr-compile the lua code #753

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

Zheaoli
Copy link
Collaborator

@Zheaoli Zheaoli commented Jan 2, 2024

Fix: #693



# Before

// BenchmarkRunFunction-16             6741            182470 ns/op          234715 B/op       1079 allocs/op
// BenchmarkRunFunction-16             7443            174567 ns/op          234710 B/op       1079 allocs/op
// BenchmarkRunFunction-16             7101            178651 ns/op          234711 B/op       1079 allocs/op
// BenchmarkRunFunction-16             6856            164739 ns/op          234722 B/op       1079 allocs/op
// BenchmarkRunFunction-16             6804            174768 ns/op          234713 B/op       1079 allocs/op

# After

// cpu: Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
// BenchmarkRunFunction-16           152046              8494 ns/op           15283 B/op         42 allocs/op
// BenchmarkRunFunction-16           150916              7630 ns/op           15274 B/op         42 allocs/op
// BenchmarkRunFunction-16           149980              8467 ns/op           15292 B/op         42 allocs/op
// BenchmarkRunFunction-16           158834              7722 ns/op           15278 B/op         42 allocs/op
// BenchmarkRunFunction-16           118228              8482 ns/op           15292 B/op         42 allocs/op

@Zheaoli Zheaoli requested a review from suxb201 January 2, 2024 12:37
@Zheaoli Zheaoli merged commit 10068d3 into tair-opensource:v4 Jan 2, 2024
7 checks passed
@Zheaoli Zheaoli deleted the manjusaka/refactor-function branch January 2, 2024 14:20
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.

源端为超多分片集群时的同步性能问题
1 participant