tag:blogger.com,1999:blog-318596391703166199.post6143861713700176185..comments2023-08-07T23:23:15.074-07:00Comments on Advanced Reactive Java: Operator concurrency primitives: producers (part 6 - final)David Karnokhttp://www.blogger.com/profile/07920580392321059533noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-318596391703166199.post-61614505342565205892016-07-10T06:50:04.184-07:002016-07-10T06:50:04.184-07:00Got it, thanks!Got it, thanks!Anonymoushttps://www.blogger.com/profile/03373759059873469334noreply@blogger.comtag:blogger.com,1999:blog-318596391703166199.post-68832576193692419512016-07-09T08:36:34.353-07:002016-07-09T08:36:34.353-07:001) Fixed, thanks
2) To avoid re-reading those fiel...1) Fixed, thanks<br />2) To avoid re-reading those fields which could cause a cache-miss (due to direct change or false sharing) of several dozen cyclesDavid Karnokhttps://www.blogger.com/profile/07920580392321059533noreply@blogger.comtag:blogger.com,1999:blog-318596391703166199.post-62007443437801252242016-07-09T07:11:07.640-07:002016-07-09T07:11:07.640-07:00Dear David, I have two questions:
1. `long n = (Lo...Dear David, I have two questions:<br />1. `long n = (Long)o;` should it be `long n = ((RequestSentinel)o).n;` ?<br />2. In the `onNext` implementation, why do we introduce a extra local variable `r` instead of use `requested` directly?Anonymoushttps://www.blogger.com/profile/03373759059873469334noreply@blogger.com