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

Improve memory use by setting map capacity in dataframe.Row() #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

teastburn
Copy link

@teastburn teastburn commented Sep 28, 2024

I noticed this while benchmarking with funcs.Evaluate. Here's my before and after for a 45x45 dataframe of float64s with an expression that uses all 45 columns.

BenchmarkFuncEvaluateOriginal-10     	     9235	    625042 ns/op	  853558 B/op	    7564 allocs/op
BenchmarkFuncEvaluateWithMemoryRes-10    	10000	    567637 ns/op	  754678 B/op	    7401 allocs/op

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