Skip to content

Commit 5233b14

Browse files
committed
Remove outdated comments.
Fixes #284
1 parent 524ba8e commit 5233b14

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/simd_accel/teddy128.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,6 @@ References
321321

322322
// TODO: Extend this to use AVX2 instructions.
323323
// TODO: Extend this to use AVX512 instructions.
324-
// TODO: Extend this to cleverly use Aho-Corasick. Possibly to replace both
325-
// "slow" searching and the verification step.
326324
// TODO: Make the inner loop do aligned loads.
327325

328326
use std::cmp;
@@ -437,8 +435,6 @@ impl Teddy {
437435
pub fn find(&self, haystack: &[u8]) -> Option<Match> {
438436
// If our haystack is smaller than the block size, then fall back to
439437
// a naive brute force search.
440-
//
441-
// TODO: Use Aho-Corasick.
442438
if haystack.is_empty() || haystack.len() < (BLOCK_SIZE + 2) {
443439
return self.slow(haystack, 0);
444440
}
@@ -788,8 +784,6 @@ impl UnsafeLoad for u8x16 {
788784
type Elem = u8;
789785

790786
unsafe fn load_unchecked(slice: &[u8], offset: usize) -> u8x16 {
791-
// TODO: Can we just do pointer casting here? I don't think so, since
792-
// this could be an unaligned load? Help me.
793787
let mut x = u8x16::splat(0);
794788
ptr::copy_nonoverlapping(
795789
slice.get_unchecked(offset),

0 commit comments

Comments
 (0)