alexdrone / buffer Goto Github PK
View Code? Open in Web Editor NEWSwift μ-framework for efficient array diffs and datasource adapters.
License: Other
Swift μ-framework for efficient array diffs and datasource adapters.
License: Other
There is an absolute reference to the Buffer.framework
containing alexusbergo
.
Perhaps change it to "relative to project" or to "relative to build products"
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
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'
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
}
Do you have any thoughts / plans around section support in tables and collections?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.