question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Engine: Disabling Validation result in suboptimal compilation of structural record operations.

See original GitHub issue

Ast expressions EStructProjand EStructUpd are compiled deferentially depending on the variable field var fieldIndex: Optional[Int].

  • If fieldIndex is undefined the lookup of the field to update/project is done by name (i.e. linear in number of the structural record fields)
  • If fieldIndex is defined to an integer idx, this later is used as the field index to look up, resulting in constant time operation).

This field is undefined by default and is only set by the type checking pass. Therefore when the validation is skipped (by setting the field packageValidation to false in the EngineConfig), the compilation of structural record of projection and update is sub-optimal.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
remyhaemmerle-dacommented, Dec 15, 2021

Another option is to do the slow linear lookup when executing EStructProj for the first time, but then cache the index and reuse it after the first execution. It should always be the same index.

This is also an interesting idea (that can be combine with 1).

0reactions
remyhaemmerle-dacommented, Jan 11, 2022

fixed by #12338.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Performance considerations for EF 4, 5, and 6 - Microsoft Learn
3 Disable validation of an edmx-based model. EDMX models are validated at compile time, even if the model is unchanged. If your model...
Read more >
NVIDIA DRIVE OS 6.0.4 TensorRT 8.4.11 Documentation
This Developer Guide covers the standard TensorRT release and demonstrates how to use the API. This guide also demonstrates how you can take...
Read more >
Application Engine - PeopleTools 8.57 - Oracle Help Center
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, ... This diagram shows the program structure of Application Engine.
Read more >
Distributed model validation with Epsilon | SpringerLink
Our approach minimises communication costs by exploiting the deterministic structure of programs and can take advantage of multiple cores on ...
Read more >
2022 Changelog | ClickHouse Docs
Validate the compression method parameter of URL table engine. ... Improved structure of DDL query result table for Replicated database (separate columns ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found