Giter Site home page Giter Site logo

Comments (7)

vkrasnov avatar vkrasnov commented on May 29, 2024 1

Me too, but it looks like vectorization doesn't happen when asm is not emitted. I can't really tell, need to look at objdump to see the difference in emitted machine code.

from boringtun.

ashleygwilliams avatar ashleygwilliams commented on May 29, 2024 1

so i definitely want us to have faster code, but i am a bit sad that this means that we can't enforce clippy on CLI and that contributors will run into a vaguely confusing error when they try to run cargo check or cargo clippy. at best i can document this in the README- but i'm still gonna see if i can ask around about conditionally applying --emit asm only to build and not check (not sure it's possible but we'll see!)

from boringtun.

hellow554 avatar hellow554 commented on May 29, 2024 1

Maybe worth opening an ticket in the rust repo?

from boringtun.

ashleygwilliams avatar ashleygwilliams commented on May 29, 2024

this is a thing that cargo shouldn't fail on, but clippy uses cargo check and check does not like asm

i do not believe there is currently a way to ask cargo check to silently fail and let clippy lint so this blocks our usage of clippy.

from boringtun.

ashleygwilliams avatar ashleygwilliams commented on May 29, 2024

@vkrasnov can you tell me more about the motivation to the .cargo/config --emit asm? i'm a little surprised that it's faster.

from boringtun.

gawen avatar gawen commented on May 29, 2024

As a work around during a development phase, I suggest to comment the following line to make cargo check works:

"--emit", "asm", # For whatever reason rustc produces faster code when this flag is enabled

from boringtun.

jeff-hiner avatar jeff-hiner commented on May 29, 2024

Closed by #223

from boringtun.

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.