Vectorized the indices for performance [skip hazarlib]
Vectorized the indices for performance [skip hazarlib]


Former-commit-id: 36dd7fcbe6bb8bde1c255f607680ffb8098de738 [formerly 53763f3a07b300daa232e3cd9c16d28d8196f0ba]
Former-commit-id: 0507a26335934676854d87b6caa9c17e03ac92d5
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine