mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 15:05:30 +00:00 
			
		
		
		
	This might have made sense if the algorithm could use `searchWords` to skip having to look at `searchIndex`, but since it always does a substring check on both the stock word and the normalizedName, it doesn't seem to help performance anyway.
		
			
				
	
	
		
			16 lines
		
	
	
		
			410 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			410 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const EXPECTED = [
 | 
						|
    {
 | 
						|
        'query': 'waker_from',
 | 
						|
        'others': [
 | 
						|
            { 'path': 'substring::SuperWaker', 'name': 'local_waker_from_nonlocal' },
 | 
						|
            { 'path': 'substring::SuperWakerTask', 'name': 'local_waker_from_nonlocal' },
 | 
						|
        ],
 | 
						|
    },
 | 
						|
    {
 | 
						|
        'query': 'my',
 | 
						|
        'others': [
 | 
						|
            { 'path': 'substring', 'name': 'm_y_substringmatching' },
 | 
						|
        ],
 | 
						|
    },
 | 
						|
];
 |