Commit Graph
7 Commits
Author SHA1 Message Date
Thomas Bouldin 90e4522e66 [Feature launch] Re-add increment operator (#5149)
* Definition is currently in an "unreleased" extension to FIRServerValues
* Tests are added to FData.m (integration tests)
* Some tests are renamed to make it clear that ServerValues != timestamps
* Functions that resolve server values now need access to any existing snapshot. This is done with lazy evaluation as described below:

Based on fix https://github.com/firebase/firebase-js-sdk/pull/2499
to bug https://github.com/firebase/firebase-js-sdk/issues/2487

Micro-benchmarking showed that N writes in succession led to N^2
performance when calculating the resolved write tree for those
writes (thankfully only at the subpath in this SDK). Lazy evaluation
of current data matches the optimization in JS that mitigated a
20% performance regression.
2020-04-01 13:30:29 -07:00
Sebastian Schmidt 339c8404d0 Revert "Add +[FIRServerValues increment:] (#4328)" (#4627)
This reverts commit 1cf8a944d7.
2020-01-08 09:25:30 -08:00
Thomas Bouldin 1cf8a944d7 Add +[FIRServerValues increment:] (#4328)
Add +[FIRServerValues increment:]

* Definition is currently in an "unreleased" extension to FIRServerValues
* Functions that resolve server values now need access to any existing snapshot; please help ensure that this is not done wastefully.
* Tests are added to FData.m
  * Setting increment values
  * Setting increment priorities
  * Type coercion
  * Overflows
* Some tests are renamed to make it clear that ServerValues != timestamps
2019-11-21 11:46:56 -08:00
Sebastian Schmidt 9bfbb9ece0 Enable clang-format for RTDB (#3506) 2019-08-05 13:27:47 -07:00
Paul Beusterien ed3e4982f9 Standardize cross module imports with angle bracket syntax (#526)
Qualify all cross-pod imports of FirebaseCore headers
2017-12-04 08:52:11 -08:00
Paul Beusterien 053b2f11ea Use modulemap to fix exposure of FirebaseCore's internal headers (#121) 2017-07-10 14:57:03 -07:00
Paul Beusterien 98ba64449a Initial 2017-05-15 12:27:07 -07:00