Vectorized

Results 72 comments of Vectorized

I’m in for more access to more lower level stuff. Unless switch statements can be auto optimized to be as efficient as jump tables. I’ve written a Yul based sort...

Looks like compiling forge-std alone with `via-ir` takes incredibly long since the v1.0.0 commit. The previous commit `2a2ce3692b8c1523b29de3ec9d961ee9fbbc43a6`, still compiles reasonably fast.

Update: looks like commit `72cdd70ae608e32711b4bcf3bbcdafc9eddc3c56` in `v0.3` is the start of the insanely long compile times. https://github.com/foundry-rs/forge-std/pull/195 I suspect it is due to the `_constructor` in `StdCheatsSafe`. And due to...

@mattsse @leonardoalt @mds1 See my previous comment.

I'm using Ubuntu 20.04.4 LTS. Both `forge build --via-ir` and `forge test --via-ir` takes incredibly long.

@mds1 ```solidity bool private lazyInitialized; function lazyInitialize() private { if (lazyInitialized) return; lazyInitialized = true; ... } function assumeNoPrecompiles(address addr, uint256 chainId) internal virtual { lazyInitialize(); ... } ``` Caveat...

Imo, the greatly improved compilation time for `via-ir` CI pipelines is worth the drop in syntactic sugar.

Lemme copy in the latest version.

Updated with latest Solady implementations. Feel free to copy or delete anything directly from Solady anytime. Tests may be harder to be ported fully, cuz Solady uses a different brutalizer...