code_gs

Results 229 comments of code_gs

Mostly a duplicate of https://github.com/Facepunch/garrysmod/pull/1573, though this PR is more expansive.

I wonder if proving code correctness would get PRs accepted faster.

It's because your benchmarks are calling a bunch of other functions: only benchmark the loop itself. Also, localise pairs and ipairs to the file so you don't count global lookups.

jit.* works fine. You're creating and filling the table as part of the benchmark loop - the majority of time is probably spent by the garbage collector and not the...

Just support nil for bordersize in RoundedBoxEx. No need for more aliases.

Yeah, use a bordersize == nil check though so false values will still error.

That's the point - false should error. Only numerical or nil values should operate without erroring.

Thanks for all the changes, I think this will now be much more efficient than halos. The code style does still need some cleaning up, though: it doesn't match the...

@Alf21 I don't think that's a good idea. Many hook library replacements put a huge load on hook.Add in order to make hook.Call faster. Calling one extra function and doing...