]> gerrit.simantics Code Review - simantics/platform.git/commit
Optimized Layer0Utils.getPossibleDefaultBinding 66/2566/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Dec 2018 14:37:39 +0000 (16:37 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 18 Dec 2018 14:37:39 +0000 (16:37 +0200)
commit5cd3522960b220eaba2be316076d6275054dffa2
treed3d2c6dae538d27b93c73666a4186c4731345b62
parent7e1ba415e6f14478c2aa682a89ed534e7044ac43
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
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