google / eDistantObject

eDistantObject (eDO) - Remote invocation library for iOS
Apache License 2.0
174 stars 36 forks source link

Cache remote weak for multiple invocations. #250

Closed copybara-service[bot] closed 2 years ago

copybara-service[bot] commented 2 years ago

Cache remote weak for multiple invocations.

The the first weak object is invalidated when it is sent across the process for the second time, due to 2 invalid cache:

  1. a new EDOWeakObject is created with different remote address when remoteWeak is called.

  2. the old EDODeallocationTracker is released and invalidated the remote EDOObject cache when the second remote call is made.

Both of the above objects should be cached throughout the life time of the real object so that the remote process always use the same EDOObject.