Giter Club home page Giter Club logo

Comments (7)

RalphAS avatar RalphAS commented on July 19, 2024 1

Profiling points to getindex, which we hoped was fixed by JuliaLang/julia#28707. But the OP's example is even worse on a recent nightly of Julia (after that PR).
Is @timholy's overhaul of Interpolations.jl likely to make compiler optimization any more effective for interpolation objects, or do we need to pray for more magic from Keno?

from imagetransformations.jl.

kmsquire avatar kmsquire commented on July 19, 2024

Returning out is not a problem. It doesn't allocate any additional memory, and allows the result to be used pipelines. (Unlike, e.g., pandas, there's no convention that functions which modify their parameters in place return nothing.)

from imagetransformations.jl.

jianghaizhu avatar jianghaizhu commented on July 19, 2024

Yes. Returning is not a problem. The question here is what the problem is.

from imagetransformations.jl.

Evizero avatar Evizero commented on July 19, 2024

Thanks for the report. I'll investigate soon when I find some time

from imagetransformations.jl.

timholy avatar timholy commented on July 19, 2024

The real issue is inferring length, which is special-cased for Tuples. Relevant: JuliaLang/julia#27434 (comment)

from imagetransformations.jl.

RalphAS avatar RalphAS commented on July 19, 2024

I'm glad that @Evizero caught my mistake. The sad thing is that I knew better last year.

Is it the case that splatting (almost?) anything other than a Tuple leads to dynamic dispatch, which can foul up inference in various (hard-to-predict) ways?

from imagetransformations.jl.

Evizero avatar Evizero commented on July 19, 2024

No worries, these things happen to us all. If anything I should have caught it in the review. Your contributions are a clear net positive and we are lucky to have you. The occasional regression is to be expected and nothing we can't fix

from imagetransformations.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.