Re: Unnecessary boxing of return from set!

2022-05-16 Thread pete windle
he cast doesn't make everything free Thanks, Pete Windle On Monday, May 16, 2022 at 12:40:07 AM UTC+1 Alex Miller wrote: > I don't think that void type hint is going to do anything there. The > deftype impl of apply here will (has to by Java requirements) return void > here.

Re: Unnecessary boxing of return from set!

2022-05-15 Thread pete windle
like the knowledge that it's returning a primitive type is missing. Thanks, Pete Windle On Sunday, May 15, 2022 at 1:39:08 PM UTC+1 pete windle wrote: > Definitely in the same wheelhouse, but upgrading to 1.11.1 shows the same > behaviour - as expected, because this is not an Instanc

Re: Unnecessary boxing of return from set!

2022-05-15 Thread pete windle
not sure I will get further, feels like I'm deeper in the innards of Compiler.java than I'm qualified for without more thought and reading. Thanks though, helpful pointer! Pete Windle On Sunday, May 15, 2022 at 1:17:10 PM UTC+1 er...@assum.net wrote: > This reminds me of a bug t

Unnecessary boxing of return from set!

2022-05-15 Thread pete windle
where a rather tight aggregation loop will be called for many millions of values and I'd prefer not to incur this cost. Workaround is obviously to write the aggregators in Java but that's strongly not preferred, at the point I'm mixing modes I might as well write the whole

Re: XOR two arrays into a third on Clojure

2014-03-16 Thread pete windle
Consider using criterium or similar for benchmarking. (time) is ok for rough and ready, but by the time you've navigated the tiered JIT of the JVM it just isn't good enough to be able to make useful inferences from the results. Pete -- You received this message because you are subscribed to th