proost opened a new pull request, #210:
URL: https://github.com/apache/datasketches-go/pull/210

   This is breaking change technically. But I propose acceptable. Because in 
normal usage(constructor with option), doesn't change anything. So many cases 
ok with compile.
   
   So what is benefits from this change?
   When you do analysis during compile time, you can see this(theta sketch as 
example):
   ```
     theta/update_sketch.go:88:13: &updateSketchOptions{...} escapes to heap    
                                                                                
                        
     theta/union.go:80:13: &unionOptions{...} escapes to heap                   
                                                                                
                        
     theta/intersection.go:57:13: &intersectionOptions{...} escapes to heap     
    
   ```
   
   Current functional options pattern pass pointer. So it makes allocation in 
heap. I change to value type to avoid this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to