Better HN
topnewbestaskshowjobs
Log inSign up

siddcoder

25 karma · joined Jan 20, 2015 (11y ago) · 31 submissions

Submissions

1.

Aggregations in Distributed SQL Execution Engines(medium.com ↗)

1 points · by siddcoder · 2y ago · discuss

comment 6y ago · link · parent

Wondering if any performance comparison was done with Apache Pinot?

3.

Long Pauses in JVM Without GC(loonytek.com ↗)

3 points · by siddcoder · 6y ago · discuss

4.

Optimistic Locking(loonytek.com ↗)

2 points · by siddcoder · 6y ago · discuss

5.

Java Volatile vs. Synchronized(loonytek.com ↗)

1 points · by siddcoder · 7y ago · discuss

6.

A tutorial on building RPC layer in a distributed system using Netty(loonytek.com ↗)

2 points · by siddcoder · 7y ago · discuss

comment 7y ago · link · parent

It is not necessary. I chose to build a protobuf based serialization and communication since it is widely used in distributed system and more performant than JSON based serialization.

Another reason was ease of use especially because Netty already supports message encoders and decoders for conversion between protobuf and bytebuf.

You could also use https://github.com/FasterXML/jackson-databind but that would require a reasonable amount of custom code for the encoder and decoders

8.

Building RPC layer in a distributed system using Netty – A tutorial(loonytek.com ↗)

3 points · by siddcoder · 7y ago · 2 comments

9.

Why Analytic Workloads Are Faster on Columnar Databases?(loonytek.com ↗)

2 points · by siddcoder · 9y ago · discuss

comment 9y ago · link · parent

The point is that overhead of locking is too much when the contention on the shared structure is fairly less. The cost of locking/unlocking/blocking/waiting or any other work done as part of enforcing synchronization is something that can be optimized away if the contention on the data structure is less.

By contention, I imply -- contention or conflicts on the same portions/pieces of structure.

If the data structure is subject to high concurrent access but in fairly disjoint regions of the data structure, we should try to implement fine grained locking scheme to increase the degree of parallelism and thus the scalability of data structure.

This is where CAS comes into picture. The article doesn't compare CAS to another locking primitive. Instead, CAS is just used as a mechanism to implement fine grained locking scheme where the methods operating on the data structure don't take global or coarse locks.

If the contention on the entire data structure is unreasonably high for some reason, then CAS based approaches or any flavors of it don't buy us much.

comment 9y ago · link · parent

I think spinlock is used when the critical section is relatively smaller where the threads are likely to perform small amount of work after acquiring locks. Thus locks are not expected to be held for longer duration. The other threads contending for the lock prefer to just spin and poll (and of course burn CPU) with the hope that lock will soon be relinquished by the owner thread. This way spinning threads avoid the overhead of context switching as well.

Goes without saying, spinlocks are not useful on uniprocessor machines or single core machines.

12.

Use of Associativity in Hashing(loonytek.com ↗)

1 points · by siddcoder · 10y ago · discuss

13.

Clustered Indexes V/s Non-Clustered Indexes(loonytek.com ↗)

2 points · by siddcoder · 10y ago · discuss

14.

Primary Indexes V/s Secondary Indexes(loonytek.com ↗)

2 points · by siddcoder · 10y ago · discuss

15.

Deep Dive into Extendible Hashing(loonytek.com ↗)

1 points · by siddcoder · 10y ago · discuss

16.

Linear Hashing Technique(loonytek.com ↗)

2 points · by siddcoder · 10y ago · discuss

17.

Pointer World(loonytek.com ↗)

3 points · by siddcoder · 10y ago · discuss

18.

Logical and Physical Addresses(loonytek.com ↗)

3 points · by siddcoder · 11y ago · discuss

19.

Logical and Physical Addresses(loonytek.com ↗)

1 points · by siddcoder · 11y ago · discuss

20.

Leader Election and Log Replication in Raft – Part 2(loonytek.com ↗)

5 points · by siddcoder · 11y ago · discuss

21.

Leader Election and Log Replication in Raft – Part 1(loonytek.com ↗)

1 points · by siddcoder · 11y ago · discuss

22.

Difference between Page table and Inverted Page table(loonytek.com ↗)

1 points · by siddcoder · 11y ago · discuss

23.

A brief take on CAP theorem(loonytek.com ↗)

2 points · by siddcoder · 11y ago · discuss

24.

Pre/Post Increment Operators and Performance Differences(loonytek.com ↗)

2 points · by siddcoder · 11y ago · discuss

comment 11y ago · link · parent

Thanks!. I have read that this data structure can be used for range updates and queries. Something that can also be done using Segment Trees. I haven't covered range updates in my article. It only talks about prefix sum and point updates. I will talk about range updates and segment trees in another article soon.

comment 11y ago · link · parent

Cool Stuff !!

comment 11y ago · link · parent

Hey, thanks for this :)

I tried to be as intuitive as possible in my post, but kind of missed to reason about this one.

Hope you liked the article !!

28.

Fenwick Trees(loonytek.com ↗)

42 points · by siddcoder · 11y ago · 5 comments

29.

Scalability approaches. How do they affect the design decisions?(loonytek.com ↗)

2 points · by siddcoder · 11y ago · discuss

12