Is it ok to call AhoCorasick in lazy_static? #954
              
                
                  
                  
                    Answered
                  
                  by
                    BurntSushi
                  
              
          
                  
                    
                      Guillermogsjc
                    
                  
                
                  asked this question in
                Q&A
              
            -
| Is it ok to use and then use  | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            BurntSushi
          
      
      
        Feb 7, 2023 
      
    
    Replies: 2 comments 1 reply
-
| Yes. Did you have any specific concerns with it? | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        BurntSushi
-
| some objects in regex lib have caches that are not "suited for" threading as read from somewhere in doc. There is in documentation the use case of regex compiled inside lazy_static, just wanted to confirm that it is ok to do the same with  Thanks. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Yes. Did you have any specific concerns with it?