~eliasnaur/gio-patches

Re: [PATCH gio] io/router: use f32.Rectangle in areaOp

Details
Message ID
<C9HQFEPVTA65.1E1HX4CGXID23@themachine>
DKIM signature
pass
Download raw message
On Wed Feb 24, 2021 at 12:41, Pierre Curto wrote:
> Le mer. 24 févr. 2021 à 12:29, Elias Naur <mail@eliasnaur.com> a écrit :
> >
> > On Wed Feb 24, 2021 at 11:00, Pierre Curto wrote:
> > > Le mer. 24 févr. 2021 à 10:20, Elias Naur <mail@eliasnaur.com> a écrit :
> > > >
> > > > What's the point? If it is performance, please mention it in the
> commit
> > > > message, preferably with a benchmark.
> > >
> > > This is indirectly related to the preparation of the ScrollRange patch.
> > > Will add benchmarks though and resend if they are conclusive (also
> > > slightly less memory footprint for very common struct).
> > >
> >
> > Smaller footprint how? Isn't image.Rectangle the same size as
> > f32.Rectangle?
>
> On a 64 bits platform it isn't: int uses 8 bytes and float32 4.
> (See https://play.golang.org/p/nXfpiK-GKJi).
>

Of course, duh. I knew I was missing something :)

Elias
Reply to thread Export thread (mbox)