Coder Social home page Coder Social logo

Comments (7)

kali2 avatar kali2 commented on June 15, 2024

We think it is safe to check null pointer for the function parameter. And in these cases, it will not impact the performance as these checks are in the very high level. if it is in the MB loop, we should avoid the check for performance.

from openh264.

elfring avatar elfring commented on June 15, 2024

I am not concerned about input parameter validation here. I would appreciate if some null pointer checks can be deleted for improved execution speed because the corresponding resource release functions should provide the desired safety check, shouldn't it?

from openh264.

andreasgal avatar andreasgal commented on June 15, 2024

null-checks are essentially free. Its a well predicted branch. Removing them won't provide a speedup. However, those checks are indeed redundant and removing them would be cleaner. @kali2, why do you need those checks?

from openh264.

elfring avatar elfring commented on June 15, 2024

I guess that unneeded null pointer checks have got unwanted effects on run time behaviour. A source code clean-up might help here.

from openh264.

kali2 avatar kali2 commented on June 15, 2024

After review all the cases you mentioned, I agree with that the null pointer check before delete is redundant. Thanks for your care. But in other cases, such as function parameter check, and check after open file, I think they it is a good coding style.

from openh264.

elfring avatar elfring commented on June 15, 2024

Are you going to remove "redundant" pointer checks before delete calls?
Will the affected source code places be fixed?

from openh264.

kali2 avatar kali2 commented on June 15, 2024

We are focus on fixing the issue of support asm code in 64-bit mode. It is appreciated if you would like to do it. Thanks!

from openh264.

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.