GithubHelp home page GithubHelp logo

alexdrone / buffer Goto Github PK

View Code? Open in Web Editor NEW
348.0 8.0 13.0 10.76 MB

Swift μ-framework for efficient array diffs and datasource adapters.

License: Other

Swift 77.82% Objective-C 18.52% Ruby 2.84% Python 0.23% Shell 0.59%
edit-distance levenshtein-distance tableview datasource keypath kvo buffer ios diffing swift

buffer's People

Contributors

alexdrone avatar t-pham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

buffer's Issues

Is Buffer a good solution for iOS Redux app ?

HI, I'm looking into Redux flow for iOS recently, it does help me to normalize some questions,
but I'm confusing with dealing big collection property in state, or multi properties in state

for properties modified, I can detect and handle in didSet block, but I have no clue what's the best way to handle a big collection inserted/deleted/modified when new state is called, I want to do accuracy operation instead just call reloadData, especially I'm using AsyncDisplayKit, reload whole collectionView/tableView will cause some UI flash issue.

Depends on a growing social app, properties might scale,
Is Buffer the solution what I seeking ?
How is the performance between Buffer with other diff frameworks ? ex: Dwifft

Also Do you think ReSwift + Buffer + AsyncDisplayKit make sense ?
I'm kind tired of MVC, lol

Build Error: Multiple Command produce info.plist

Environment: Xcode 10, Swift 4.2
After deleting the info.plist from [build phase] -> [Copy Bundle Resources] , the problem is resolved.
Below is the build error:
Multiple commands produce '/Users/crewbuild/myagent/_work/6/output/iphoneos/Test-Release/build.sym/Test-Release-iphoneos/Buffer/Buffer.framework/Info.plist':
2018-10-17T18:19:48.9660210Z 1) Target 'Buffer' (project 'Pods') has copy command from '/Users/crewbuild/myagent/_work/6/s/Pods/Buffer/src/Info.plist' to '/Users/crewbuild/myagent/_work/6/output/iphoneos/Test-Release/build.sym/Test-Release-iphoneos/Buffer/Buffer.framework/Info.plist'
2018-10-17T18:19:48.9689440Z 2) Target 'Buffer' (project 'Pods') has process command with output '/Users/crewbuild/myagent/_work/6/output/iphoneos/Test-Release/build.sym/Test-Release-iphoneos/Buffer/Buffer.framework/Info.plist'

Carthage build fails

Installing via Carthage fails when building because the framework does not have any shared Xcode scheme.

screen shot 2016-09-08 at 4 39 17 pm

mainThread VS mainQueue

There are quite a few checks like NSThread.isMainThread() in the code. Maybe this should be changed to checking for the main queue instead?

Here's sample code to check for the queue instead, based on http://blog.benjamin-encz.de/post/main-queue-vs-main-thread/, where the difference is explained, too:

private let mainQueueKey = UnsafeMutablePointer<Void>.alloc(1)
private let mainQueueValue = UnsafeMutablePointer<Void>.alloc(1)

// Associate a key-value pair with the main queue
dispatch_queue_set_specific(
    dispatch_get_main_queue(), 
    mainQueueKey, 
    mainQueueValue, 
    nil
)

func dispatch_ensure_main_queue(block: dispatch_block_t) {

    // Check for presence of key-value pair on current queue
    if (dispatch_get_specific(mainQueueKey) == mainQueueValue) {
        // if we found right value for key, execute immediately
        print("main queue")
        block()
    } else {
        // otherwise dispatch on main queue now
        // /!\ Use dispatch_sync cautiously
        // it can cause deadlocks!
        dispatch_sync(dispatch_get_main_queue()) {
            print("not main queue")
            block()
        }
    }

    return image
}

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.