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.

Improve implementation of computeFrames

See original GitHub issue

extendDeepNoArrays was a simple way to prevent the frame logic from doing a deep extend on data arrays. The assumption was array attributes were a negligible concern. Transforms are a notable exception and should be deep-extended when computing frames. That can be handled with a special case. If this seems like a common situation though, then the attributes should be extended with proper knowledge of the plot schema.

@monfera, I know you’ve dealt with very similar issues when implementing transforms. Is merging attributes with knowledge of the plot schema a problem you’ve already solved elsewhere?

cc: @etpinard

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rreussercommented, Oct 12, 2016

(which, to be clear, is just extendDeep once you strip out the snarkiness 😄 )

1reaction
rreussercommented, Oct 12, 2016

If I understand, you’re planning an extendDeepExceptSomeArrays which doesn’t just simply do an Array.isArray check, but, uses the above logic.

Correct! Goal: avoid deep merges of data arrays but permit deep merges of things like arrays of transforms.

And thanks for the additional thoughts! As a result and before going farther, I’m going to turn my extendDeepNoArrays into an extendDeepSureWhyNotArraysToo and check the performance. There’s a good chance that this extend deep, though unsatisfyingly inefficient, will not be a limiting factor until long after the number of data points has pushed SVG rendering behind 16ms/frame.

A general principle I’ve been aiming for is to avoid adding any additional iteration through the full data, but if we need to handle webgl much more carefully, then it’s probably poorly-done premature optimization anyway to avoid this.

I don’t know the answer yet, but thanks for bringing up these concerns!

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSR/RET are not supported with computeFrames option #3268
[REQUIRED] Step 2: Describe your environment ... plugins { id 'com.android.application' id 'kotlin-android' id 'com.google.gms.google-services' id ...
Read more >
error : JSR/RET are not supported with computeFrames option
i am facing this error Execution failed for task app:transformClassesWithInstantRunForDebug'.JSR/RET are not supported with computeFrames option.
Read more >
Enhancing Software Development Techniques via Copy ...
codebases improves developers' interaction with the current codebase, likely future codebases, ... implementation of Codebase Analysis for the Eclipse IDE.
Read more >
Advice (Byte Buddy (without dependencies) 1.10.2 API)
Enhance public class Advice extends Object implements AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper, Implementation.
Read more >
Process to compute frames of reference in EFAR-MMLA.
This paper further explores modelling pipelines with different configurations to improve the generalizability of the model. We collected 11 multimodal datasets ...
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