FogBugz (Case [Issue]11256) Kernel - ifNil instead of isNil ifTrue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FogBugz (Case [Issue]11256) Kernel - ifNil instead of isNil ifTrue

Pharo Issue Tracker
A FogBugz case was opened by Clement Bera.

Case ID:      11256
Title:        ifNil instead of isNil ifTrue
Status:       Work Needed
Category:     Enhancement
Project:      Kernel
Area:         Misc
Priority:     4 - Would be nice
Milestone:    Pharo3.0: 30/03/2014
Assigned To:  Everyone

URL:          https://pharo.fogbugz.com/default.asp?11256

So I bench and ifNil, ifNotNil are 1.75x faster than isNil ifTrue:, isNil ifFalse:

So I modified 189 isNil ifTrue: to ifNil: .

This results in some speedup, for instance:
- some string speedup
- RBParser speedup (good for Opal)


You are subscribed to this case.  If you do not want to receive automatic notifications in the future, unsubscribe (https://pharo.fogbugz.com/default.asp?pre=preUnsubscribe&pg=pgEditBug&command=view&ixBug=11256) from this case.

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker