Fastest remove certain values from array : I have an array looking like this : 

     [[Wed Sep 20 09:00:00 GMT+02:00 2017, SKYSCANNER, 04b073133c7843248a7a3dbc968f75a0, network1, affiliate, 1141338.0, 18164.0, , 0.08, 0.07, 0.62, 0.06, 0.0138, 0.0738, 0.465, 0.10695, 0.57195, 0.0525, 0.012075, 0.064575], [Wed Sep 20 09:00:00 GMT+02:00 2017, SKYSCANNER, 4420cc109ec54214b68edc906b18e44a, network1, affiliate, 1141338.0, 18164.0, , 0.75, 0.67, 5.58, 0.5625, 0.129375, 0.691875, 4.185, 0.96255, 5.14755, 0.5025, 0.115575, 0.618075], [Wed Sep 20 09:00:00 GMT+02:00 2017, SKYSCANNER, 90a7cbf1cf4e4043889626c4119d4b4d, network1, affiliate, 1141338.0, 18164.0, , 0.08, 0.07, 0.62, 0.06, 0.0138, 0.0738, 0.465, 0.10695, 0.57195, 0.0525, 0.012075, 0.064575], [Wed Sep 20 09:00:00 GMT+02:00 2017, SKYSCANNER, 0f04f1ff385541d3a8d9ea2f0d85482b, network1, affiliate, 1141338.0, 18164.0, , 0.08, 0.07, 0.62, 0.06, 0.0138, 0.0738, 0.465, 0.10695, 0.57195, 0.0525, 0.012075, 0.064575],[Wed Sep 20 09:00:00 GMT+02:00 2017, SKYSCANNER, 0f04f1ff385541d3a8d9ea2f0d85482b, network1, affiliate, 1232113, 1232133, , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]]


What I want to achieve(but don't know how) is to delete all entries(in the fastest way) that look like the last one in this array, e.g. `[Wed Sep 20 09:00:00 GMT+02:00 2017, SKYSCANNER, 0f04f1ff385541d3a8d9ea2f0d85482b, network1, affiliate, 1232113, 1232133, , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]` 

Basically, if all values after the 8th position are zeroes the entry is not needed and must be removed.

Typically in my case such array can have between 5-15k entries, so I was wondering what is the fastest way to achieve this? Can someone provide a working snippet?

Thanks!
