]> gerrit.simantics Code Review - simantics/platform.git/commit
Optimized Layer0Utils.getPossibleDefaultBinding 37/3737/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Dec 2018 14:37:39 +0000 (16:37 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 10 Jan 2020 10:23:03 +0000 (10:23 +0000)
commit76f9b3a30b19aa1f5de8947095d094d5a079bb19
tree9d405e5b23d7137be7517c09bd6c5588fbd48592
parent5b66c553e41f973c2fdc148b172a537c33ac783d
Optimized Layer0Utils.getPossibleDefaultBinding

Removed badly named datatype_binging public static field from
Layer0Utils in favor of Bindings.DATATYPE. If you were using the
previous Layer0Utils constant in some place, just replace it.

The problem in the optimized code was that it was constantly converting
SCL types like "Double", "Boolean" etc. to databoard datatypes using the
databoard type parser even though those basic primitive types should
have been already premapped somewhere to prevent the need for any kind
of parsing.

gitlab #242

Change-Id: I336d5ebb6b5dbe080372d5b7304d5608f0472297
(cherry picked from commit 5cd3522960b220eaba2be316076d6275054dffa2)
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/PropertyInfoRequest.java
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/Layer0Utils.java