if else or Map(), what faster

if else or Map(), what faster

For example I have 280 countries list, I need to compare with ISO codes.
  1. if(Country == "Aruba")
    {
        ISO_Code = "ABW";
    }
    else if(Country == "Afghanistan")
    {
        ISO_Code = "AFG";
    }
Or

  1. ISOcodes = Map();
  2. ISOcodes.put("Aruba","ABW);
  3. ISOcodes.put("Afghanistan","AFG);
  4. country_iso = ISOcodes.get("Aruba");
Some thoughts what option better and why? What code will work faster?

Thanks

    Access your files securely from anywhere

        Zoho Developer Community







                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation
                                              • Sticky Posts

                                              • Zoho Developer Community Monthly Digest - September 2024

                                                Hello everyone, This month's Developer Digest is packed with resources to help you build powerful applications. Learn how to leverage Zoho CRM's new features, explore the latest in Zoho Finance and Catalyst, and join exciting bootcamps, webinars, and
                                              • Zoho Developer Community Monthly Digest - August 2024

                                                Hello everyone, Get ready for another exciting month of Zoho development! Our August digest is packed with events, resources, and community discussions to empower you as a Zoho developer. Let's dive right in! Upcoming Events To stay on top of the upcoming
                                              • Extensions 101: Build Extensions for Zoho Finance suite

                                                Hello Developers! We are thrilled to announce our 5-day webinar series on building extensions for Zoho Finance Suite products. Our first session was a resounding success, introducing Extensions, Zoho Developer, Zoho Marketplace, and the Zoho Books Developer
                                              • Zoho Developer Community Monthly Digest - July 2024

                                                Hello everyone, We're here again with July month's digest packed with exciting events, resources, updates, and community discussions to empower you as a Zoho developer. Dive right in! Upcoming Events To stay on top of the upcoming developer community
                                              • Zoho Developer Community Monthly Digest - June 2024

                                                Hello everyone, This month's Developer Community Digest is packed with everything you need to stay on top of your game! We've got a lineup of events you won't want to miss, valuable resources, important updates, and a glimpse into what's buzzing in the


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Tips

                                                                            Tips

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now