resize notification and improve performance with SimpleArrayMap