BHoM / BHoM/BHoM_Engine

Geometry_Engine: Performance benchmarking for null checking

Open
#2,533 4 comments 0 reactions 1 assignee Claimed by @rolyhudson View on GitHub
type:feature
Dominant language
C#
Stars
30
Forks
13
Avg merge
7d 10h
Merged PRs (30d)
5

Description

#### Description:

In order to consider better the options and approaches for null handling in the PR https://github.com/BHoM/BHoM_Engine/pull/2516
A set of performance benchmarking for null checking is proposed.

Using one million calls to `SquaredDistance` and `Polyline.Length()` on following approaches

1. Baseline: no null checks
2. check all nulls directly within method
3. nulls checked with IsNull
4. nulls checked with IIsNull
5. with and without deepcheck (Polyline.Length() only)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.