minor optimization for Flash platfrom end CPP