pharo-spec / Spec

Spec is a framework in Pharo for describing user interfaces.
MIT License
61 stars 63 forks source link

use-optimzied-ifNil #1454

Closed MarcusDenker closed 11 months ago

MarcusDenker commented 11 months ago

Two simple changes to make sure that a #ifNotNil:#ifNil: send is inlined

MarcusDenker commented 11 months ago

Changes are in

SpMorphicTableDataSource>>#elements SpDatePresenter>>#initialize

The SpMorphicTableDataSource method seems to be called a lot from the inspector (e.g. in the debugger), so avoiding some sends and block creations is nice

demarey commented 11 months ago

Why symbols are now serialized as Strings in Tonel?

MarcusDenker commented 11 months ago

There is now a conflict, I will redo the PR