jmeaster30 / ocean

A C-like programming language (get it like sea-like like an ocean lol)
GNU General Public License v3.0
0 stars 0 forks source link

Reduce the amount of modules we copy around #95

Closed jmeaster30 closed 8 months ago

jmeaster30 commented 8 months ago

I feel like this does cause any serious performance issues yet but it definitely could as well as causing issues with circular dependencies.

I would like to have a single compilation unit that can hold other data but mostly have a hash map or some other data structure to store modules and then each module will have just the module name in the resolved modules so we can look up any module from anywhere.

I don't think this would help with #93 but it may??

jmeaster30 commented 8 months ago

There was a good chunk of the execution time that involved memmoves so I bet this would help on larger hydro projects

jmeaster30 commented 8 months ago

I think I made this better. projecteuler/problem4 compile time was cut in half but that really doesn't make a ton of sense.