<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 15, 2016 at 11:57 AM, Laura Perez Cerrato <span dir="ltr">&lt;<a href="mailto:lauraperezcerrato@gmail.com" target="_blank">lauraperezcerrato@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><div dir="ltr">Thanks to you all :) Should I commit those?</div></blockquote><div><br></div><div>I did already I think.  But next time it&#39;ll be up to you ;-)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_extra"><br clear="all"><div><div data-smartmail="gmail_signature"><div dir="ltr"><font size="2" face="arial, helvetica, sans-serif" color="#000000">-Laura Perez Cerrato</font></div></div></div>
<br><div class="gmail_quote">On 15 June 2016 at 15:56, David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Done.<br>
<br>
Thanks Laura!<br>
<br>
Dave<br>
<br>
<br>
&gt;  Hi David, Hi All,<br>
&gt;<br>
&gt;    I&#39;d like Laura to be added as a committer to <a href="http://source.squeak.org/VMMaker" rel="noreferrer" target="_blank">source.squeak.org/VMMaker</a>.<br>
<div><div>&gt;<br>
&gt; On Wed, Jun 15, 2016 at 7:28 AM, Laura Perez Cerrato &lt;<br>
&gt; <a href="mailto:lauraperezcerrato@gmail.com" target="_blank">lauraperezcerrato@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hello everyone,<br>
&gt;&gt;<br>
&gt;&gt; Working on JPEGReadWriter2 I noticed that both reading and writing<br>
&gt;&gt; primitives include a sanity check that ensures that the<br>
&gt;&gt; source/destination<br>
&gt;&gt; Smalltalk bitmap has the exact size in bytes needed, instead of checking<br>
&gt;&gt; that its size is at least that needed. Some BitBlt primitives perform<br>
&gt;&gt; the<br>
&gt;&gt; same check, thus not allowing operations with forms with associated<br>
&gt;&gt; bitmaps<br>
&gt;&gt; with a size greater than needed.<br>
&gt;&gt;<br>
&gt;&gt; When performing operations with images, and specially when such images<br>
&gt;&gt; are<br>
&gt;&gt; large in size, actually processing the images takes a small fraction of<br>
&gt;&gt; the<br>
&gt;&gt; time it takes to perform the whole operation, while allocating and<br>
&gt;&gt; deallocating correctly sized bitmaps takes much longer. If one would<br>
&gt;&gt; wish<br>
&gt;&gt; to process a series of similarly sized images (with a definite maximum<br>
&gt;&gt; size), it would be desirable to allocate a bitmap big enough to hold any<br>
&gt;&gt; of<br>
&gt;&gt; them only once and then reuse it, thus avoiding the aforementioned cost.<br>
&gt;&gt; Checking that source and destination bitmaps are big enough instead of<br>
&gt;&gt; checking that their size is exactly that which is expected would allow<br>
&gt;&gt; that<br>
&gt;&gt; optimization.<br>
&gt;&gt;<br>
&gt;&gt; A brief exploration of BitBlt and JPEGReadWriter2&#39;s code, accompanied<br>
&gt;&gt; with<br>
&gt;&gt; some experimenting of what would happen if such sanity checks were<br>
&gt;&gt; modified<br>
&gt;&gt; as proposed, has lead me to thinking that these changes would be<br>
&gt;&gt; benefitial. I haven&#39;t observed any undesirable side effects (meaning,<br>
&gt;&gt; nothing seems to have blown up :)). However, I&#39;m inexperienced in<br>
&gt;&gt; working<br>
&gt;&gt; with the VM, so it&#39;s rather expectable that I miss something :) Your<br>
&gt;&gt; input<br>
&gt;&gt; on the topic would be extremely appreciated.<br>
&gt;&gt;<br>
&gt;&gt; The attached changesets contain the proposed set of changes.<br>
&gt;&gt;<br>
&gt;&gt; Cheers!<br>
&gt;&gt;<br>
&gt;&gt; -Laura Perez Cerrato<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
</div></div><span><font color="#888888">&gt; --<br>
&gt; _,,,^..^,,,_<br>
&gt; best, Eliot<br>
&gt;<br>
<br>
<br>
</font></span></blockquote></div><br></div>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>