Update index with profiling for Perl