|
|
|
Re: How to report minor improvements for emf plugin code [message #417910 is a reply to message #417909] |
Fri, 28 March 2008 14:32 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------070003030901050709010603
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Reinhold,
One of the bugzilla's severity choices is "enhancement".
Probably way more people will benefit from faster execution than from
slightly more readable code...
Thanks for looking at code very carefully!
Reinhold Bihler wrote:
> Ed,
>
>
>>> if (baseName.contains("."))
>>>
>> Even this is likely to be more efficient doing baseName.indexOf('.')
>> != -1.
>>
>
> Sometimes there is a tradeoff between readability and efficiency. In this
> case
> I would vote for readability... but thats a question of personal preference
> and
> really not worth discussing ;-)
>
>
>> I've been accused of being pedantic, so I won't mind. I'll categorize it
>> as an enhancement request and gladly make the improvements.
>>
>
> I could not find the enhancement bug when I checke the bugzilla 5 minutes
> ago. Should I open it? I would be glad to do so.
>
> In the future I'll open enhancement bugs of such stuff.
>
> Reinhold
>
>
--------------070003030901050709010603
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Reinhold,<br>
<br>
One of the bugzilla's severity choices is "enhancement". <br>
<br>
Probably way more people will benefit from faster execution than from
slightly more readable code...<br>
<br>
Thanks for looking at code very carefully!<br>
<br>
<br>
Reinhold Bihler wrote:
<blockquote cite="mid:fsiva3$k1u$1@build.eclipse.org" type="cite">
<pre wrap="">Ed,
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">if (baseName.contains("."))
</pre>
</blockquote>
<pre wrap="">Even this is likely to be more efficient doing baseName.indexOf('.')
!= -1.
</pre>
</blockquote>
<pre wrap=""><!---->
Sometimes there is a tradeoff between readability and efficiency. In this
case
I would vote for readability... but thats a question of personal preference
and
really not worth discussing ;-)
</pre>
<blockquote type="cite">
<pre wrap="">I've been accused of being pedantic, so I won't mind. I'll categorize it
as an enhancement request and gladly make the improvements.
</pre>
</blockquote>
<pre wrap=""><!---->
I could not find the enhancement bug when I checke the bugzilla 5 minutes
ago. Should I open it? I would be glad to do so.
In the future I'll open enhancement bugs of such stuff.
Reinhold
</pre>
</blockquote>
<br>
</body>
</html>
--------------070003030901050709010603--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03216 seconds