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

Small speed enhancement for Julia wrapper #546

Merged
merged 2 commits into from Mar 20, 2015
Merged

Small speed enhancement for Julia wrapper #546

merged 2 commits into from Mar 20, 2015

Conversation

JonWel
Copy link
Contributor

@JonWel JonWel commented Mar 19, 2015

buffer_length is specified constant.
Type of errcode and the message_buffer are specified in the functions, that helps the jit compiler to optimise the function to a static type for theses global variables.

High level interface also benefit from theses enhancement.

Using global variables for buffer_length, errcode and message_buffer allows fewer memory allocation. So least time wasted to allocate and less need for garbage collector to run.

Small speed enhancement for low level interface
Small update
ibell added a commit that referenced this pull request Mar 20, 2015
Small speed enhancement for Julia wrapper
@ibell ibell merged commit d736a1b into CoolProp:master Mar 20, 2015
@ibell ibell added this to the v 5.1 milestone Mar 20, 2015
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

2 participants