Giter VIP home page Giter VIP logo

performancebezier's Introduction

iOS UIBezierPath Performance

This code dramatically improves performance for common UIBezierPath operations, and it also brings UIBezierPath API closer to its NSBezierPath counterpart.

What is this?

This framework adds caching into every UIBezierPath so that common operations can be performed in constant time. It also adds some missing NSBezierPath methods to the UIBezierPath class.

After linking this framework into your project, all Bezier paths will automatically be upgraded to use this new caching. No custom UIBezierPath allocation or initialization is required.

For example, by default there is no O(1) way to retrieve elements from a UIBezierPath. In order to retrieve the first point of the curve, you must CGPathApply() and interate over the entire path to retrieve that single point. This framework changes that. For many algorithms, this can dramatically affect performance.

Documentation

View the header files for full documentation.

Building the framework

This library depends on IOS-Universal-Framework and is built with the Real Framework option.

Including in your project

  1. Link against the built framework.
  2. Add "-ObjC++ -lstdc++" to the Other Linker Flags in the project's Settings
  3. #import <PerformanceBezier/PerformanceBezier.h>

JRSwizzle

This framework includes and uses the JRSwizzle library, which is licensed under the MIT license.

License

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 United States License.

For attribution, please include:

  1. Mention original author "Adam Wulf for Loose Leaf app"
  2. Link to https://getlooseleaf.com/opensource/
  3. Link to https://github.com/adamwulf/PerformanceBezier

Support this framework

This framework is created by Adam Wulf (@adamwulf) as a part of the Loose Leaf app.

Buy the app to show your support! :)

performancebezier's People

Contributors

adamwulf avatar

Watchers

 avatar

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.