mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	Add robinhood hashing to structs.
This corrects changes in internal structure when values were inserted in different orders (which was previously incorrect.) Robinhood hashing should correct this by making the internal structure of the hashtable invariant of insertion order. This, in turn, allows naive and deterministic equality, comparison, and hashing of structs.
This commit is contained in:
		| @@ -209,7 +209,8 @@ struct GstThread { | ||||
|     enum { | ||||
|         GST_THREAD_PENDING = 0, | ||||
|         GST_THREAD_ALIVE, | ||||
|         GST_THREAD_DEAD | ||||
|         GST_THREAD_DEAD, | ||||
|         GST_THREAD_ERROR | ||||
|     } status; | ||||
| }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose